package cn.skyquant.quant4j.task.boot;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.ImportResource;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

//@EnableTransactionManagement
@SpringBootApplication
@ServletComponentScan
@RestController
@ImportResource("classpath:applicationContext.xml")
public class TaskBoot {

    public static void main(String[] args) {
        System.setProperty("dubbo.application.logger","slf4j");
        SpringApplication.run(TaskBoot.class, args);
    }

    @RequestMapping("")
    public String hello(){
         return "quant4j-task";
    }
}